
package ch.hearc.coursJava.moo.heritage.entrainement;

public class UseDessin
	{

	/*------------------------------------------------------------------*\
	|*							Methodes Public							*|
	\*------------------------------------------------------------------*/

	public static void main(String[] args)
		{
		main();
		}

	public static void main()
		{
		Dessin dessin = new Dessin();
		dessin.add(new Rectangle("Rec 1",12.0, 10.0));
		dessin.add(new Carree("Carree 1",12.0));
		dessin.add(new Cercle("Cerlce 1",8.0));
		System.out.println(dessin);
		afficherDessin(dessin);
		}

	private static void afficherDessin(Dessin dessin)
		{
		for(Formes formes:dessin)
			{
			System.out.println(formes);
			}
		}

	/*------------------------------------------------------------------*\
	|*							Methodes Private						*|
	\*------------------------------------------------------------------*/

	}
